package fr.btc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/main")
public class MainController {

    @RequestMapping("/display/{name}")
    public ModelAndView welcome(@PathVariable String name) {
        ModelAndView mav = new ModelAndView("index");
        mav.addObject("customer", name);
        return mav;
    }

}
